const {verToken} = require('./../../utils/jwt')

const verMyToken =async (req,res) => {

    let token = req.headers.authorization
    let resp = await verToken(token)
    if(resp !== "timeout"){
        res.send({
            status : 200,
            msg : "success",
            data : resp
        })
    }else {
        res.send({
            status : 400,
            msg : "token过期",
            data : ""
        })
    }




}

module.exports = verMyToken